%ion-view#my-records-page(view-title="我的纪录" hide-nav-bar="true")
  %ion-header-bar.bar-furion(align-title="center")
    %button.back-button(ng-click="goBack()")
    %h1.title 纪录
    -# %button.button.button-clear.light(ng-click="toggleDelete()") {{!shouldShowDelete ? '编辑' : '完成'}}
    %button.button.button-clear.light 
      %i.ion-android-add

  %ion-content.ng-cloak(ng-cloak)
    %input(ng-model="fil" type="text")
    %ion-list(ng-if="records && records.length != 0" show-delete="shouldShowDelete")
      %ion-item(ng-repeat="r in records | filter: {title: fil}")
        %h2 {{r.title}}
        %h2.text-grey.small {{r.created_at}}
        %ion-option-button.button-assertive(ng-click="remove(r)") 删除
        -# %ion-delete-button.ion-minus-circled(ng-click="records.splice($index, 1)")
        %ion-option-button.button-info(ng-click="edit(r)") 编辑
        %h2 {{$index}}

      %p.text-grey.text-center.margin-top-10 没有更多纪录了~